package com.jastar.android.test.base.room.database;

import androidx.room.Database;
import androidx.room.RoomDatabase;

import com.jastar.android.test.base.room.dao.BookInfoDao;
import com.jastar.android.test.base.room.entity.BookInfo;

/**
 * entities     数据库包含的表
 * version      数据库版本号(表变更时用到)
 * exportSchema 是否导出数据库信息的JSON串，方便调试，正式环境不导出，若设为true还需要指定JSON保存路径
 */
@Database(entities = {BookInfo.class}, version = 1, exportSchema = false)
public abstract class BookDatabase extends RoomDatabase {

    public abstract BookInfoDao bookInfoDao();

}
